90304: xfi:segment-remainder

Documentation

Owners

Name Affiliation Email Start End
Herm Fischer UBMatrix / Mark V Systems fischer@markv.com 06-02-2008 at 15:10:00

References

function definition

Test Case Variations


V-01 Segment remainder for everest which has two elements mixed with dimensions

Documentation

Inputs

Outputs

  • Result test: $result instance of element(*)* and count( $result ) eq 2 and local-name($result[1]) eq 'NeedOxygen' and $result[1]/@id eq 'ev1' and local-name($result[2]) eq 'HasWifiAccess' and $result[2]/@id eq 'ev2'

V-02 Segment remainder for vinson which has complex type structures intermixed with dimensions

Documentation

Inputs

Outputs

  • Result test: $result instance of element(*)* and count( $result ) eq 3 and local-name($result[1]) eq 'Element1' and $result[1]/@id eq 'e1' and $result[1] is //t:Element1[@id='e1'] and local-name($result[2]) eq 'Stuff' and $result[2]/@id eq 's1' and $result[2] is //t:Stuff[@id='s1'] and local-name($result[3]) eq 'Stuff' and $result[3]/@id eq 's4' and $result[3] is //t:Stuff[@id='s4'] and $result[3]/t:Element3/@id eq 's4e3'

V-03 Segment remainder for kilimanjaro is empty

Documentation

Inputs

Outputs

  • Result test: empty( $result )

V-04 Segment remainder for segment-less quark is empty

Documentation

Inputs

Outputs

  • Result test: empty( $result )

V-05 Segment remainder for ozone hole returns typed attribute and element nodes

Documentation

Checks element typing, data typing, and atomization.

Inputs

Outputs

  • Result test: $result[1]/*[1]/*[1] instance of element(t:Element4) and $result[1]/*[1]/*[1]/@intAttr instance of attribute(*,xs:integer) and $result[1]/*[1]/*[1]/@qnAttr instance of attribute(*,xs:QName) and $result[1]/*[1]/*[1]/*[1] instance of element(t:intElt,xs:integer) and $result[1]/*[1]/*[1]/*[2] instance of element(t:qnElt,xs:QName) and data( $result[1]/*[1]/*[1]/@intAttr ) instance of xs:integer and data( $result[1]/*[1]/*[1]/@qnAttr ) instance of xs:QName and data( $result[1]/*[1]/*[1]/*[1] ) instance of xs:integer and data( $result[1]/*[1]/*[1]/*[2] ) instance of xs:QName and ($result[1]/*[1]/*[1]/@intAttr + 1 eq 12346) and ($result[1]/*[1]/*[1]/@qnAttr eq QName('http://xbrl.org/formula/conformance/example','Element1') ) and ($result[1]/*[1]/*[1]/*[1] + 1 eq 54322 ) and ($result[1]/*[1]/*[1]/*[2] eq QName('http://xbrl.org/formula/conformance/example','Element2') )

Revisions

Name On Details
Herm Fischer 06-02-2008 at 15:10:00 Created the test case.
Herm Fischer 05-12-2008 at 00:00:00 Added typed nodes test v-05.